package com.platform.server.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.platform.server.dao.ImageDao;
import com.platform.server.response.pojo.ReturnData;
import com.platform.server.service.ImageService;

@Transactional
@Service
public class IamgeServiceImpl implements ImageService {
	
	@Autowired
	private ImageDao ImageDao;
	
	/**
	 * 轮播图
	 */
	@Override
	public ReturnData selectImageList(String type) {
		List<Map<String, Object>> lists = ImageDao.selectImageList(type);
		if(lists.size() > 0){
			return new ReturnData(lists,200,"成功");
		}
		return new ReturnData(100,"暂无数据");
	}

}
